Report constructing

Let us examine construction of a simple report containing data access components. We will use DBDEMOS demo tables as data for the example.

At first, create a project with the help of which we would be able to make experiments. To perform this, create a new project in Delphi and place the "TfrxReport," "TfrxDesigner," "TfrxDialogControls," and "TfrxBDEComponents" components on the form.

Define the following handler for the "Design" button:

procedure TForm1.Button1Click(Sender: TObject);

begin

frxReport1.DesignReport;

end;

After that, compile and run the project. This is all you need for creation of the end-user reports’ designer.

On clicking on the "Design" button, the designer, which contains a blank report, opens. Let us examine constructing of simple reports in this environment.